<template>
	<view>
		<view class="list_body_each">
			<view class="list_content_box" @click="clickTrademarkDetails(item)">
				<view class="img_box">
					<image :src="item.mark_descriptions" alt="" class="shbao_img" mode="aspectFit"></image>
					<view class="tm_box" v-if="item.same_shangbiao_count>1">同名{{item.same_shangbiao_count}}类</view>
				</view>
				<view class="shbao_name el">{{item.shangbiao_name}}</view>
				<view class="type_equally">
					<view class="type_box">{{item.category}}类</view>
					<view class="equally_box">{{item.service_count}}个小项</view>
				</view>
				<view class="price" v-if="item.is_price==1"> <text>¥</text> {{item.price}} </view>
			</view>

		</view>

	</view>
</template>

<script>
	export default {
		name: "trademarkList",
		props: {
			item: {
				type: Object,
				default: () => {
					return {
						id: 381,
						categoryNoToStr: "服装鞋帽", //类型名称
						shangbiao_name_en: "Porcelain Words", //英文名称
						cost: "4471", //价格
						mark_descriptions: "https://res-sb.huibiaow.cn/color/logos/20241227/2024122726068703.png", //商标图片
						shangbiao_name: "瓷言", //商标名称
						category: 25, //分类
						same_shangbiao_count: 1 //同名多类数量 只有1类不显示
					}
				},
			},
		},
		data() {
			return {

			};
		},
		methods: {
			clickTrademarkDetails(item) {
				uni.navigateTo({
					url: '/subHomePage/trademarkDetails/trademarkDetails?id=' + item.id
				});
			}
		}
	}
</script>

<style lang="scss">
	.list_body_each {
		width: 100%;
		background: #FFFFFF;
		border-radius: 10rpx;
		padding: 10rpx 10rpx 15rpx 10rpx;
		margin-top: 16rpx;
		box-sizing: border-box;

		.checkBox {
			margin-bottom: 10rpx;

			checkbox {
				width: 100%;
			}
		}

		.img_box {
			width: 100%;
			height: 200rpx;
			background: #fff;
			border-radius: 10rpx;
			border: 1px solid #DFE3E5;
			display: flex;
			flex-direction: column;
			flex-wrap: nowrap;
			align-content: center;
			justify-content: center;
			align-items: center;
			position: relative;
			// margin: 0px auto;

			.shbao_img {
				max-width: 80%;
				max-height: 80%;
			}

			.tm_box {
				position: absolute;
				background-color: #FFE9E9;
				color: #C56A6A;
				font-size: 18rpx;
				line-height: 30rpx;
				padding: 0 18rpx;
				right: 4rpx;
				bottom: 5rpx;
				border-radius: 10px;
			}
		}

		.shbao_name {
			// width: 187rpx;
			font-family: Alibaba PuHuiTi;
			font-weight: 600;
			font-size: 30rpx;
			color: #333333;
			white-space: nowrap;
			overflow: hidden;
			text-overflow: ellipsis;
			margin: 10rpx 0rpx;
			text-align: center;
		}

		.type_equally {
			display: flex;
			flex-direction: row;
			justify-content: center;
			align-items: center;
			flex-wrap: nowrap;
			margin: 0rpx 0rpx 10rpx 0rpx;

			.type_box {
				width: 70rpx;
				height: 24rpx;
				line-height: 24rpx;
				font-family: Alibaba PuHuiTi;
				font-weight: 400;
				font-size: 20rpx;
				color: #666666;
				text-align: center;
			}

			.equally_box {
				font-family: Alibaba PuHuiTi;
				font-weight: 400;
				font-size: 20rpx;
				color: #333333;
				width: 110rpx;
				height: 24rpx;
				line-height: 24rpx;
				border-left: 2rpx solid #DEDEDE;
				text-align: center;
			}
		}

		.price {
			font-family: Alibaba PuHuiTi;
			font-weight: bold;
			font-size: 24rpx;
			color: #FF4B21;
			text-align: center;

			text {
				font-size: 24rpx;
			}
		}
	}
</style>